#ifndef __STRDUP_HH__
#define __STRDUP_HH__

#include <string.h>
char *strDup(const char *str);
//Note:strDup(NULL) returns NULL

char *strDupSize(const char *str);
// like "strDup", except that it *doesn't* copy the original.
// (instead, it just allocate a string of the same size as the original.)

char *strDupSize(const char *str, size_t& resultBufSize);
// An alternative form of "strDupSize()" that also returns the size of allocated buffer.

#endif
